package com.hxy.modules.demo.entity;

import com.hxy.modules.activiti.annotation.ActField;
import com.hxy.modules.activiti.annotation.ActTable;
import com.hxy.modules.common.entity.ActivitiBaseEntity;
import org.hibernate.validator.constraints.NotEmpty;


/**
 * 预算申请
 * 
 * @author hxy
 * @email huangxianyuan@gmail.com
 * @date 2018-05-11 17:17:14
 */
@ActTable(tableName = "budgetaply",pkName="id")
public class BudgetaplyEntity extends ActivitiBaseEntity {

	//
	private String id;
	//申请人
	private String userId;
	//申请标题
	@ActField(name = "预算名称")
	@NotEmpty(message = "预算名称不能为空")
	private String title;
	//预算金额
	@NotEmpty(message = "预算金额不能为空")
	@ActField(name = "预算金额",isJudg = true)
	private Integer money;

	/**
	 * 设置：
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public String getId() {
		return id;
	}
	/**
	 * 设置：申请人
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}
	/**
	 * 获取：申请人
	 */
	public String getUserId() {
		return userId;
	}
	/**
	 * 设置：申请标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * 获取：申请标题
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * 设置：预算金额
	 */
	public void setMoney(Integer money) {
		this.money = money;
	}
	/**
	 * 获取：预算金额
	 */
	public Integer getMoney() {
		return money;
	}

}
